package com.github.bitsapling.sapling.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 私信表 ：用户发送私信
 * </p>
 *
 */
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    /**
     * 发送者id
     */
    private String senderId;

    /**
     * 接收者id
     */
    private String receiverId;

    /**
     * 私信内容
     */
    private String content;

    /**
     * 发送时间
     */
    private LocalDateTime sentTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public LocalDateTime getSentTime() {
        return sentTime;
    }

    public void setSentTime(LocalDateTime sentTime) {
        this.sentTime = sentTime;
    }

    @Override
    public String toString() {
        return "Message{" +
        "id = " + id +
        ", senderId = " + senderId +
        ", receiverId = " + receiverId +
        ", content = " + content +
        ", sentTime = " + sentTime +
        "}";
    }
}
